//
// Created by 莫吉米 on 16/8/10.
//

#ifndef IYOGO_ADAPTOR_H
#define IYOGO_ADAPTOR_H



//这个类没有什么用,仅有特例化的Adaptor有用
template <class T>
class Adaptor
{

};



template<>
class Adaptor<Card>
{
private:
    Connector& Connect;

public:
    Adaptor<Card>(Connector& conn);
    int GetLastid();
    void Insert(Card& );


};




template <>
class Adaptor<Customer>
{
private:
    Connector& Connect;
public:
    Adaptor<Customer> (Connector& conn);
    //vector<Card> GetList();
    void Insert(Customer&);
    void BindCard(int,int);
    int Getid(string name);
};

#endif //IYOGO_ADAPTOR_H
